import { createApp } from 'vue'
import { createPinia } from 'pinia'
import '@/assets/main.css'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
//px转rem
// 使用下面@ts-ignore表示忽略ts类型检测，否则下面代码打包时会报错
import '@/util/flexible'
import 'element-plus/dist/index.css'
import Menu from '@/components/menu/Menu.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(createPinia())
app.component('Menu', Menu)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
